package lab02.test36;

public abstract class  Student {
    private String name;
    private String sclass;
    private double chinese;
    private double math;
    private double computer;

    public double Average(){
        double average = (chinese+math+computer)/3;
        return average;
    }

    Student(){}
    Student(String name,String sclass,double chinese,double math,double computer){
        this.name = name;
        this.sclass = sclass;
        this.chinese = chinese;
        this.math = math;
        this.computer = computer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSclass() {
        return sclass;
    }

    public void setSclass(String sclass) {
        this.sclass = sclass;
    }

    public double getChinese() {
        return chinese;
    }

    public void setChinese(double chinese) {
        this.chinese = chinese;
    }

    public double getMath() {
        return math;
    }

    public void setMath(double math) {
        this.math = math;
    }

    public double getComputer() {
        return computer;
    }

    public void setComputer(double computer) {
        this.computer = computer;
    }
}
